/*
 * @Author: 金鱼 823457467@qq.com
 * @Date: 2024-10-14 10:30:00
 * @LastEditors: 金鱼 823457467@qq.com
 * @LastEditTime: 2024-10-14 11:18:51
 * @FilePath: \mock-demo\vue.config.js
 * @Description: 
 * 
 * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved. 
 */
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
})


module.exports = {
  devServer: {
    setupMiddlewares: (middlewares, devServer) => {
      const app = devServer.app;
      const server = devServer.server;

      // 引入你的模拟数据处理逻辑
      require('./mock/index.js')(app);

      // 返回middlewares数组以保持默认行为
      return middlewares;
    },
    // 其他的合法配置项...
  },
};